<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
		<style type="text/css">
			 /* Grome/Opera/safari */
			input::-webkit-input-placeholder{
				color: red;
			}
			
			/* ie10+ */
			input::-ms-input-placeholder{ 
				color: red;
			}
			/* firefox19+ */
			input::-moz-placeholder{
				color: red;
			}
			/* fireFox 18- */
			input::-moz-placeholder{
				color: red;
			}
			/* 设置input获取焦点的样式 */
			input:focus{
				color: red;
			}
		</style>
	</head>
	<body>
		<input type="text" placeholder="请设置用户名" />
	</body>
</html>
